<template>
  <div class="love">
    <h2>猜你喜欢</h2>
    <span class="name" v-for="(item, index) in list" :key="index">{{
      item.name
    }}</span>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        { name: "综合排序" },
        { name: "距离最近" },
        { name: "销量最高" },
        { name: "筛选" },
        { name: "年货节热卖" },
        { name: "津贴联盟" },
        { name: "满减优惠" },
        { name: "品质联盟" },
      ],
    };
  },
};
</script>

<style scoped>
.love  h2{
  width: 100%;
  height: 30px;

}
.love {
  width: 94%;
  height: 150px;
  margin: 10px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.love .name {
  width: 80px;
  height: 30px;
  background: rgba(204, 204, 204, 0.499);
  margin: 10px 0;
  text-align: center;
  line-height: 30px;
  border-radius: 5px;
}
</style>